package edu.scu.declaresys.dao.impl;

import edu.scu.declaresys.dao.DAOFactory;
import edu.scu.declaresys.dao.intr.INewsDAO;
import edu.scu.declaresys.exception.ExecuteException;
import edu.scu.declaresys.vo.News;

public class NewsDAOImpl extends GeneralDAOImpl<News> implements INewsDAO
{

	public NewsDAOImpl()
	{
		super(News.class);
	}

	@Override
	protected void fillReference(News vo, int depth) throws ExecuteException
	{
		vo.setNewsClass(DAOFactory.createNewsClassDAO().findById(vo.getNewsClassId(), depth - 1));
	}
	
	
}
